package com.mfin.bom.adapter;

import com.mfin.bom.interfaces.ILoanMaster;
import com.mfin.bom.objects.LoanMaster;
import com.mfin.enumeration.LoanType;
import com.mfin.vo.ObjectKey;

public class LoanMasterAdapter extends IIdentifiableAdapter implements
		ILoanMaster {
	private static final long serialVersionUID = -2141892921596521962L;
	private LoanMaster wrappedLoanMaster = null;

	public LoanMasterAdapter(LoanMaster loanmaster) {
		super();
		wrappedLoanMaster = loanmaster;
		ObjectKey[] keys = new ObjectKey[1];
		keys[0] = new ObjectKey(wrappedLoanMaster.getLoanType());
		setKeys(keys);
	}

	public LoanMaster getLoanMaster() {
		return wrappedLoanMaster;
	}

	@Override
	public LoanType getLoanType() {
		return wrappedLoanMaster.getLoanType();
	}

	@Override
	public void setLoanType(LoanType loanType) {
		wrappedLoanMaster.setLoanType(loanType);
	}

	@Override
	public String getLoanName() {
		return wrappedLoanMaster.getLoanName();
	}

	@Override
	public void setLoanName(String loanName) {
		wrappedLoanMaster.setLoanName(loanName);
	}
	
}
